package com.summer.campussct.schedule;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class OrderSchedule {

    // 每隔5秒清理订单表中未支付的订单
    @Scheduled(fixedRate = 5 * 1000)
    public void clearOrder(){
        // 查询数据库中还未支付订单

        // 删除超过规定支付时间的订单

    }
}
